def post_handle_confirm(self):
    # 测试逻辑2--确认符号要求的到货单，即status=1的到货单
    res = self.get_asn_list()

    # 用于存储符合条件的结果的 id
    ids_with_asn_status = []

    # 遍历每个字典，使用 try 来获取 asn_status 和 id 的值
    for entry in res:
        try:
            asn_status = entry["asn_status"]
            if asn_status == 1:
                ids_with_asn_status.append(entry["id"])
        except KeyError:
            pass

    print("IDs with asn_status 1:", ids_with_asn_status)
    # 对符合条件的结果进行后续处理
    for entry in ids_with_asn_status:
        confirmurl = f"{self.confirmurl}{entry}/"
        print(confirmurl)
        response = requests.post(url=confirmurl, headers=self.headers)
        print(response)